package com.smart.manager.member.entities.models;


import io.ebean.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class MemberMaterialPigState extends Model implements Serializable {

    @Id
    @GeneratedValue(generator = "snowflake")
    @ApiModelProperty("主键ID LONG型 雪花算法")
    private Long id;

    @ApiModelProperty("记录时间")
    private LocalDate timing;

    @ApiModelProperty("温度")
    private String temp;

    @ApiModelProperty("步数")
    private Integer step;

    @ApiModelProperty("猪仔")
    private Long pigId;


}
